package com.neighbor.neighborhooduser.service.impl;

import com.neighbor.neighborhooduser.pojo.PointsRecords;
import com.neighbor.neighborhooduser.dao.IPointsRecordsDao;
import com.neighbor.neighborhooduser.service.IPointsRecordsService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 用户积分记录表 服务实现类
 * </p>
 *
 * @author song
 * @since 2025-09-22 09:13:04
 */
@Service
public class PointsRecordsServiceImpl extends ServiceImpl<IPointsRecordsDao, PointsRecords> implements IPointsRecordsService {
    @Autowired
    IPointsRecordsDao pointsRecordsDao;
    @Override
    public List<PointsRecords> getPointsRecordByUserId(Integer userId) {
        return pointsRecordsDao.getPointsRecordByUserId(userId);
    }
}
